<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Message queue</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Message_queue"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Message_queue rootpage-Message_queue skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">Message queue</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr">
<style data-mw-deduplicate="TemplateStyles:r1236090951">
/* start https://en.wikipedia.org/ */
.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}
/* end https://en.wikipedia.org/ */
</style><div role="note" class="hatnote navigation-not-searchable">"Mailbox (computing)" redirects here. For the file format, see <a href="Mbox" title="Mbox">Mbox</a>.</div>
<style data-mw-deduplicate="TemplateStyles:r1251242444">
/* start https://en.wikipedia.org/ */
.mw-parser-output .ambox{border:1px solid #a2a9b1;border-left:10px solid #36c;background-color:#fbfbfb;box-sizing:border-box}.mw-parser-output .ambox+link+.ambox,.mw-parser-output .ambox+link+style+.ambox,.mw-parser-output .ambox+link+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+style+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+link+.ambox{margin-top:-1px}html body.mediawiki .mw-parser-output .ambox.mbox-small-left{margin:4px 1em 4px 0;overflow:hidden;width:238px;border-collapse:collapse;font-size:88%;line-height:1.25em}.mw-parser-output .ambox-speedy{border-left:10px solid #b32424;background-color:#fee7e6}.mw-parser-output .ambox-delete{border-left:10px solid #b32424}.mw-parser-output .ambox-content{border-left:10px solid #f28500}.mw-parser-output .ambox-style{border-left:10px solid #fc3}.mw-parser-output .ambox-move{border-left:10px solid #9932cc}.mw-parser-output .ambox-protection{border-left:10px solid #a2a9b1}.mw-parser-output .ambox .mbox-text{border:none;padding:0.25em 0.5em;width:100%}.mw-parser-output .ambox .mbox-image{border:none;padding:2px 0 2px 0.5em;text-align:center}.mw-parser-output .ambox .mbox-imageright{border:none;padding:2px 0.5em 2px 0;text-align:center}.mw-parser-output .ambox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ambox .mbox-image-div{width:52px}@media(min-width:720px){.mw-parser-output .ambox{margin:0 10%}}@media print{body.ns-0 .mw-parser-output .ambox{display:none!important}}
/* end https://en.wikipedia.org/ */
</style>
<p>In <a href="Computer_science" title="Computer science">computer science</a>, <b>message queues</b> and <b>mailboxes</b> are <a href="Software_engineering" title="Software engineering">software-engineering</a> <a href="Software_componentry" class="mw-redirect" title="Software componentry">components</a> typically used for <a href="Inter-process_communication" title="Inter-process communication">inter-process communication</a> (IPC), or for inter-<a href="Thread_(computing)" title="Thread (computing)">thread</a> communication within the same process. They use a <a href="Queue_(data_structure)" class="mw-redirect" title="Queue (data structure)">queue</a> for <a href="Message_(computer_science)" class="mw-redirect" title="Message (computer science)">messaging</a> – the passing of control or of content. <a href="Group_communication_system" title="Group communication system">Group communication systems</a> provide similar kinds of functionality.
</p><p>The message queue paradigm is a sibling of the <a href="Publish%E2%80%93subscribe_pattern" title="Publish–subscribe pattern">publisher/subscriber</a> pattern, and is typically one part of a larger <a href="Message-oriented_middleware" title="Message-oriented middleware">message-oriented middleware</a> system. Most messaging systems support both the publisher/subscriber and message queue models in their <a href="Application_programming_interface" class="mw-redirect" title="Application programming interface">API</a>, e.g. <a href="Java_Message_Service" class="mw-redirect" title="Java Message Service">Java Message Service</a> (JMS).
</p><p>Competing Consumers pattern enables multiple concurrent consumers to process messages on the same message queue. <sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
</p>
<meta property="mw:PageProp/toc">
<div class="mw-heading mw-heading2"><h2 id="Remit_and_ownership">Remit and ownership</h2></div>
<p>Message queues implement an <a href="Asynchronous_method_invocation" title="Asynchronous method invocation">asynchronous communication pattern</a> between two or more processes/threads whereby the sending and receiving party do not need to interact with the message queue at the same time. Messages placed onto the queue are stored until the recipient retrieves them. Message queues have implicit or explicit limits on the size of data that may be transmitted in a single message and the number of messages that may remain outstanding on the queue.<sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Remit">Remit</h3></div>
<p>Many implementations of message queues function internally within an <a href="Operating_system" title="Operating system">operating system</a> or within an <a href="Application_software" title="Application software">application</a>. Such queues exist for the purposes of that <a href="System" title="System">system</a> only.<sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup>
</p><p>Other implementations allow the passing of messages between different computer systems, potentially connecting multiple applications and multiple operating systems.<sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup> These message queuing systems typically provide <a href="Resilience_(network)" class="mw-redirect" title="Resilience (network)">resilience</a> functionality to ensure that messages do not get "lost" in the event of a system failure. Examples of commercial implementations of this kind of message queuing <a href="Software" title="Software">software</a> (also known as <a href="Message-oriented_middleware" title="Message-oriented middleware">message-oriented middleware</a>) include <a href="IBM_MQ" title="IBM MQ">IBM MQ</a> (formerly MQ Series) and Oracle Advanced Queuing (AQ). There is a <a href="Java_(programming_language)" title="Java (programming language)">Java</a> standard called <a href="Java_Message_Service" class="mw-redirect" title="Java Message Service">Java Message Service</a>, which has several <a href="Proprietary_software" title="Proprietary software">proprietary</a> and <a href="Free_software" title="Free software">free software</a> implementations.
</p><p><a href="Real-time_operating_system" title="Real-time operating system">Real-time operating systems</a> (RTOSes) such as <a href="VxWorks" title="VxWorks">VxWorks</a> and <a href="QNX" title="QNX">QNX</a> encourage the use of message queuing as the primary inter-process or inter-thread communication mechanism. This can result in integration between message passing and CPU scheduling. Early examples of commercial RTOSes that encouraged a message-queue basis to inter-thread communication also include <a href="Versatile_Real-Time_Executive" title="Versatile Real-Time Executive">VRTX</a> and <a href="PSOS_(real-time_operating_system)" title="PSOS (real-time operating system)">pSOS</a>+, both of which date to the early 1980s. The <a href="Erlang_(programming_language)" title="Erlang (programming language)">Erlang programming language</a> uses <i>processes</i> to provide concurrency; these processes communicate asynchronously using message queuing.
</p>
<div class="mw-heading mw-heading3"><h3 id="Ownership">Ownership</h3></div>
<p>The message queue software can be either proprietary, open source or a mix of both. It is then run either on premise in private servers or on external cloud servers (<a href="Message_queuing_service" title="Message queuing service">message queuing service</a>).
</p>
<ul><li>Proprietary options have the longest history, and include products from the inception of message queuing, such as <a href="IBM_MQ" title="IBM MQ">IBM MQ</a>, and those tied to specific operating systems, such as <a href="Microsoft_Message_Queuing" title="Microsoft Message Queuing">Microsoft Message Queuing (MSMQ)</a>. Cloud service providers also provide their proprietary solutions such as <a href="Amazon_Simple_Queue_Service" title="Amazon Simple Queue Service">Amazon Simple Queue Service</a> (SQS), StormMQ, <a href="Solace_Corporation" title="Solace Corporation">Solace</a>, and <a href="IBM_MQ" title="IBM MQ">IBM MQ</a>.</li>
<li>Open source choices of messaging <a href="Middleware" title="Middleware">middleware</a> systems includes <a href="Apache_ActiveMQ" title="Apache ActiveMQ">Apache ActiveMQ</a>, <a href="Apache_Kafka" title="Apache Kafka">Apache Kafka</a>, <a href="Apache_Qpid" title="Apache Qpid">Apache Qpid</a>, <a href="Apache_RocketMQ" title="Apache RocketMQ">Apache RocketMQ</a>, <a href="Enduro/X" title="Enduro/X">Enduro/X</a>, <a href="JBoss_Messaging" title="JBoss Messaging">JBoss Messaging</a>, JORAM, <a href="RabbitMQ" title="RabbitMQ">RabbitMQ</a>, <a href="Open_Message_Queue" title="Open Message Queue">Sun Open Message Queue</a>, and <a href="Tarantool" title="Tarantool">Tarantool</a>.</li></ul>
<p>Examples on hardware-based <a href="Message_oriented_middleware" class="mw-redirect" title="Message oriented middleware">messaging middleware</a> vendors are <a href="Solace_Corporation" title="Solace Corporation">Solace</a>, <a href="Apigee" title="Apigee">Apigee</a>, and <a href="IBM_MQ" title="IBM MQ">IBM MQ</a>.
</p>
<div class="mw-heading mw-heading2"><h2 id="Usage">Usage</h2></div>
<p>In a typical message-queueing implementation, a <a href="System_administrator" title="System administrator">system administrator</a> installs and configures message-queueing software (a <a href="Queue_manager" class="mw-redirect" title="Queue manager">queue manager</a> or broker), and defines a named message queue. Or they register with a <a href="Message_queuing_service" title="Message queuing service">message queuing service</a>.
</p><p>An application then registers a software routine that "listens" for messages placed onto the queue.
</p><p>Second and subsequent applications may connect to the queue and transfer a message onto it.
</p><p>The queue-manager software stores the messages until a receiving application connects and then calls the registered software routine. The receiving application then processes the message in an appropriate manner.
</p><p>There are often numerous options as to the exact semantics of message passing, including:
</p>
<ul><li>Durability – messages may be kept in memory, written to disk, or even committed to a <a href="Database" title="Database">DBMS</a> if the need for reliability indicates a more resource-intensive solution.</li>
<li>Security policies – which applications should have access to these messages?</li>
<li>Message purging policies – queues or messages may have a "<a href="Time_to_live" title="Time to live">time to live</a>".</li>
<li>Message filtering – some systems support filtering data so that a subscriber may only see messages matching some pre-specified criteria of interest.</li>
<li>Delivery policies – do we need to guarantee that a message is delivered at least once, or no more than once?</li>
<li>Routing policies – in a system with many queue servers, what servers should receive a message or a queue's messages?</li>
<li>Batching policies – should messages be delivered immediately? Or should the system wait a bit and try to deliver many messages at once?</li>
<li>Queuing criteria – when should a message be considered "enqueued"? When one queue has it? Or when it has been forwarded to at least one remote queue? Or to all queues?</li>
<li>Receipt notification – A publisher may need to know when some or all subscribers have received a message.</li></ul>
<p>These are all considerations that can have substantial effects on transaction semantics, system reliability, and system efficiency.
</p>
<div class="mw-heading mw-heading2"><h2 id="Standards_and_protocols">Standards and protocols</h2></div>
<p>Historically, message queuing has used proprietary, closed protocols, restricting the ability for different operating systems or programming languages to interact in a heterogeneous set of environments.
</p><p>An early attempt to make message queuing more ubiquitous was <a href="Sun_Microsystems" title="Sun Microsystems">Sun Microsystems</a>' <a href="Java_Message_Service" class="mw-redirect" title="Java Message Service">JMS</a> specification, which provided a <a href="Java_(software_platform)" title="Java (software platform)">Java</a>-only abstraction of a client <a href="Application_programming_interface" class="mw-redirect" title="Application programming interface">API</a>. This allowed Java developers to switch between providers of message queuing in a fashion similar to that of developers using <a href="SQL" title="SQL">SQL</a> databases. In practice, given the diversity of message queuing techniques and scenarios, this wasn't always as practical as it could be.
</p><p>Three standards have emerged which are used in open source message queue implementations:
</p>
<ol><li><a href="Advanced_Message_Queuing_Protocol" title="Advanced Message Queuing Protocol">Advanced Message Queuing Protocol</a> (AMQP) – feature-rich message queue protocol, approved as ISO/IEC 19464 since April 2014</li>
<li><a href="Streaming_Text_Oriented_Messaging_Protocol" title="Streaming Text Oriented Messaging Protocol">Streaming Text Oriented Messaging Protocol</a> (STOMP) – simple, text-oriented message protocol</li>
<li><a href="MQTT" title="MQTT">MQTT</a> (formerly MQ Telemetry Transport) – lightweight message queue protocol especially for embedded devices</li></ol>
<p>These protocols are at different stages of standardization and adoption. The first two operate at the same level as <a href="HTTP" title="HTTP">HTTP</a>, MQTT at the level of <a href="TCP/IP" class="mw-redirect" title="TCP/IP">TCP/IP</a>.
</p><p>Some proprietary implementations also use HTTP to provide message queuing by some implementations, such as <a href="Amazon.com" class="mw-redirect" title="Amazon.com">Amazon</a>'s <a href="Amazon_Simple_Queue_Service" title="Amazon Simple Queue Service">SQS</a>. This is because it is always possible to layer asynchronous behaviour (which is what is required for message queuing) over a synchronous protocol using request-response semantics. However, such implementations are constrained by the underlying protocol in this case and may not be able to offer the full fidelity or set of options required in message passing above.
</p>
<div class="mw-heading mw-heading2"><h2 id="Synchronous_vs._asynchronous">Synchronous vs. asynchronous</h2></div>
<p>Many of the more widely known <a href="Communications_protocol" class="mw-redirect" title="Communications protocol">communications protocols</a> in use operate <a href="Synchronization_(computer_science)" title="Synchronization (computer science)">synchronously</a>. The HTTP protocol – used in the <a href="World_Wide_Web" title="World Wide Web">World Wide Web</a> and in <a href="Web_service" title="Web service">web services</a> – offers an obvious example where a user sends a request for a web page and then waits for a reply.
</p><p>However, scenarios exist in which synchronous behaviour is not appropriate. For example, <a href="AJAX" class="mw-redirect" title="AJAX">AJAX</a> (<a href="https://en.wiktionary.org/wiki/asynchronous" class="extiw external" title="wikt:asynchronous">Asynchronous</a> <a href="JavaScript" title="JavaScript">JavaScript</a> and <a href="XML" title="XML">XML</a>) can be used to asynchronously send text, JSON or XML messages to update part of a web page with more relevant information. <a href="Google" title="Google">Google</a> uses this approach for their Google Suggest, a search feature which sends the user's partially typed queries to Google's servers and returns a list of possible full queries the user might be interested in the process of typing. This list is asynchronously updated as the user types.
</p><p>Other asynchronous examples exist in event notification systems and <a href="Publish%E2%80%93subscribe_pattern" title="Publish–subscribe pattern">publish/subscribe</a> systems.
</p>
<ul><li>An application may need to notify another that an event has occurred, but does not need to wait for a response.</li>
<li>In publish/subscribe systems, an application "publishes" information for any number of clients to read.</li></ul>
<p>In both of the above examples it would not make sense for the sender of the information to have to wait if, for example, one of the recipients had crashed.
</p><p>Applications need not be exclusively synchronous or asynchronous. An interactive application may need to respond to certain parts of a request immediately (such as telling a customer that a sales request has been accepted, and handling the promise to draw on inventory), but may queue other parts (such as completing calculation of billing, forwarding data to the central accounting system, and calling on all sorts of other services) to be done some time later.
</p><p>In all these sorts of situations, having a subsystem which performs message-queuing (or alternatively, a broadcast messaging system) can help improve the behavior of the overall system.
</p>
<div class="mw-heading mw-heading2"><h2 id="Implementation_in_UNIX">Implementation in UNIX</h2></div>
<p>There are two common message queue implementations in <a href="Unix" title="Unix">UNIX</a>. One is part of the SYS V API, the other one is part of <a href="POSIX" title="POSIX">POSIX</a>.
</p>
<div class="mw-heading mw-heading3"><h3 id="SYS_V">SYS V</h3></div>
<p>UNIX SYS V implements message passing by keeping an array of linked lists as message queues. Each message queue is identified by its index in the array, and has a unique descriptor. A given index can have multiple possible descriptors. UNIX gives standard functions to access the message passing feature.<sup id="cite_ref-The_Design_of_the_UNIX_Operating_System_7-0" class="reference"><a href="#cite_note-The_Design_of_the_UNIX_Operating_System-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup>
</p>
<dl><dt><code>msgget()</code></dt>
<dd>This system call takes a key as an argument and returns a descriptor of the queue with the matching key if it exists. If it does not exist, and the <code>IPC_CREAT</code> flag is set, it makes a new message queue with the given key and returns its descriptor.</dd>
<dt><code>msgrcv()</code></dt>
<dd>Used to receive a message from a given queue descriptor. The caller process must have read permissions for the queue. It is of two types.<sup id="cite_ref-Operating_Systems_Concepts_8-0" class="reference"><a href="#cite_note-Operating_Systems_Concepts-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup>
<ul><li>Blocking receive puts the child to sleep if it cannot find a requested message type. It sleeps until another message is posted in the queue, and then wakes up to check again.</li>
<li>Non-blocking receive returns immediately to the caller, mentioning that it failed.</li></ul></dd></dl>
<dl><dt><code>msgctl()</code></dt>
<dd>Used to change message queue parameters like the owner. Most importantly, it is used to delete the message queue by passing the <code>IPC_RMID</code> flag. A message queue can be deleted only by its creator, owner, or the superuser.</dd></dl>
<div class="mw-heading mw-heading3"><h3 id="POSIX">POSIX</h3></div>
<p>The POSIX.1-2001 message queue API is the later of the two UNIX message queue APIs. It is distinct from the SYS V API, but provides similar function. The unix man page <code>mq_overview(7)</code> provides an overview of POSIX message queues.
</p>
<div class="mw-heading mw-heading2"><h2 id="Graphical_user_interfaces">Graphical user interfaces</h2></div>
<p><a href="Graphical_user_interface" title="Graphical user interface">Graphical user interfaces</a> (GUIs) employ a message queue, also called an <i>event queue</i> or <i>input queue</i>, to pass <a href="Event_(computing)" title="Event (computing)">graphical input actions</a>, such as <a href="Mouse_click" class="mw-redirect" title="Mouse click">mouse clicks</a>, keyboard events, or other user inputs, to the <a href="Application_program" class="mw-redirect" title="Application program">application program</a>.<sup id="cite_ref-9" class="reference"><a href="#cite_note-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup> The windowing system places messages indicating user or other events, such as timer ticks or messages sent by other threads, into the message queue. The GUI application removes these events one at a time by calling a routine called <code>getNextEvent()</code> or similar in an <a href="Event_loop" title="Event loop">event loop</a>, and then calling the appropriate application routine to process that event.<sup id="cite_ref-10" class="reference"><a href="#cite_note-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1184024115">
/* start https://en.wikipedia.org/ */
.mw-parser-output .div-col{margin-top:0.3em;column-width:30em}.mw-parser-output .div-col-small{font-size:90%}.mw-parser-output .div-col-rules{column-rule:1px solid #aaa}.mw-parser-output .div-col dl,.mw-parser-output .div-col ol,.mw-parser-output .div-col ul{margin-top:0}.mw-parser-output .div-col li,.mw-parser-output .div-col dd{page-break-inside:avoid;break-inside:avoid-column}
/* end https://en.wikipedia.org/ */
</style><div class="div-col">
<ul><li><a href="Advanced_Message_Queuing_Protocol" title="Advanced Message Queuing Protocol">Advanced Message Queuing Protocol</a> (AMQP)</li>
<li><a href="Amazon_Simple_Queue_Service" title="Amazon Simple Queue Service">Amazon Simple Queue Service</a></li>
<li><a href="Apache_ActiveMQ" title="Apache ActiveMQ">Apache ActiveMQ</a></li>
<li><a href="Apache_Qpid" title="Apache Qpid">Apache Qpid</a></li>
<li><a href="Celery_(software)" title="Celery (software)">Celery (software)</a></li>
<li><a href="Gearman" title="Gearman">Gearman</a></li>
<li><a href="IBM_Integration_Bus" class="mw-redirect" title="IBM Integration Bus">IBM Integration Bus</a></li>
<li><a href="IBM_MQ" title="IBM MQ">IBM MQ</a></li>
<li><a href="Java_Message_Service" class="mw-redirect" title="Java Message Service">Java Message Service</a></li>
<li><a href="MQTT" title="MQTT">MQTT</a></li>
<li><a href="Message-oriented_middleware" title="Message-oriented middleware">Message-oriented middleware</a>, (category)</li>
<li><a href="Microsoft_Message_Queuing" title="Microsoft Message Queuing">Microsoft Message Queuing</a> (known colloquially as MSMQ)</li>
<li><a href="NATS_Messaging" title="NATS Messaging">NATS</a></li>
<li><a href="Oracle_Cloud" title="Oracle Cloud">Oracle Messaging Cloud Service</a></li>
<li><a href="RabbitMQ" title="RabbitMQ">RabbitMQ</a></li>
<li><a href="Redis" title="Redis">Redis</a></li>
<li><a href="TIBCO" class="mw-redirect" title="TIBCO">TIBCO</a> Enterprise Message Service</li>
<li><a href="Enduro/X" title="Enduro/X">Enduro/X</a> Middleware platform</li>
<li><a href="ZeroMQ" title="ZeroMQ">ZeroMQ</a></li></ul>
</div>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239543626">
/* start https://en.wikipedia.org/ */
.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}
/* end https://en.wikipedia.org/ */
</style><div class="reflist">
<div class="mw-references-wrap"><ol class="references">
<li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */
.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}
/* end https://en.wikipedia.org/ */
</style><cite id="CITEREFGorton" class="citation book cs1">Gorton, Ian. <i>Foundations of Scalable Systems</i>. O'Reilly Media. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>9781098106034</bdi>.</cite></span>
</li>
<li id="cite_note-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-2">^</a></b></span> <span class="reference-text">Dive Into Queue Module In Python. <a rel="nofollow" class="external text" href="http://linux.die.net/man/7/mq_overview">Overview of POSIX message queues</a> </span>
</li>
<li id="cite_note-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-3">^</a></b></span> <span class="reference-text">Win32 system message queues. <cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20120317065349/http://msdn.microsoft.com/en-us/library/ms644927(VS.85).aspx">"About Messages and Message Queues"</a>. <i>Windows User Interface</i>. Microsoft Developer Network. Archived from <a rel="nofollow" class="external text" href="http://msdn.microsoft.com/en-us/library/ms644927(VS.85).aspx">the original</a> on March 17, 2012<span class="reference-accessdate">. Retrieved <span class="nowrap">April 21,</span> 2010</span>.</cite></span>
</li>
<li id="cite_note-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-4">^</a></b></span> <span class="reference-text">Linux and POSIX message queues. <a rel="nofollow" class="external text" href="http://linux.die.net/man/7/mq_overview">Overview of POSIX message queues</a> <a rel="nofollow" class="external text" href="https://web.archive.org/web/20120504002336/http://linux.die.net/man/7/mq_overview">Archived</a> 2012-05-04 at the <a href="Wayback_Machine" title="Wayback Machine">Wayback Machine</a> at linux.die.net</span>
</li>
<li id="cite_note-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-5">^</a></b></span> <span class="reference-text">Using Linux Message Queues. <a rel="nofollow" class="external text" href="http://www.civilized.com/files/msgfuncs.txt">Linux message queue functions</a> <a rel="nofollow" class="external text" href="https://web.archive.org/web/20120408091327/http://www.civilized.com/files/msgfuncs.txt">Archived</a> 2012-04-08 at the <a href="Wayback_Machine" title="Wayback Machine">Wayback Machine</a> at www.civilized.com</span>
</li>
<li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text">For example, the MSMQ product. <cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://msdn.microsoft.com/en-us/library/ms711472.aspx">"Message Queuing (MSMQ)"</a>. <i>Network Communication</i>. Microsoft Developer Network<span class="reference-accessdate">. Retrieved <span class="nowrap">May 9,</span> 2009</span>.</cite></span>
</li>
<li id="cite_note-The_Design_of_the_UNIX_Operating_System-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-The_Design_of_the_UNIX_Operating_System_7-0">^</a></b></span> <span class="reference-text">
<cite id="CITEREFBach,_M.J.1986" class="citation book cs1">Bach, M.J. (1986). <span class="id-lock-registration" title="Free registration required"><a rel="nofollow" class="external text" href="https://archive.org/details/designofunixoper00bach"><i>The Design of the UNIX Operating System</i></a></span>. Prentice-Hall. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>9780132017992</bdi>.</cite></span>
</li>
<li id="cite_note-Operating_Systems_Concepts-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-Operating_Systems_Concepts_8-0">^</a></b></span> <span class="reference-text">
<cite id="CITEREFAbraham_Silberschatz,_Peter_B._Galvin1994" class="citation book cs1">Abraham Silberschatz, Peter B. Galvin (1994). <i>Operating Systems Concepts</i>. Addison-Wesley. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>9780201504804</bdi>.</cite></span>
</li>
<li id="cite_note-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-9">^</a></b></span> <span class="reference-text"><cite id="CITEREFCartwright" class="citation web cs1">Cartwright, Corky. <a rel="nofollow" class="external text" href="https://www.cs.rice.edu/~cork/newBook/node89.html">"GUI Programming"</a>. <i>Rice University:Robert (Corky) Cartwright</i><span class="reference-accessdate">. Retrieved <span class="nowrap">June 27,</span> 2020</span>.</cite></span>
</li>
<li id="cite_note-10"><span class="mw-cite-backlink"><b><a href="#cite_ref-10">^</a></b></span> <span class="reference-text"><cite id="CITEREFNystrom2014" class="citation book cs1">Nystrom, Robert (2014). <a rel="nofollow" class="external text" href="https://gameprogrammingpatterns.com/event-queue.html"><i>Game Programming Patterns</i></a>. Genever Benning. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-0990582908</bdi><span class="reference-accessdate">. Retrieved <span class="nowrap">June 27,</span> 2020</span>.</cite></span>
</li>
</ol></div></div>
<div class="navbox-styles"><style data-mw-deduplicate="TemplateStyles:r1129693374">
/* start https://en.wikipedia.org/ */
.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}
/* end https://en.wikipedia.org/ */
</style><style data-mw-deduplicate="TemplateStyles:r1236075235">
/* start https://en.wikipedia.org/ */
.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}
/* end https://en.wikipedia.org/ */
</style></div><div role="navigation" class="navbox" aria-labelledby="Inter-process_communication278" style="padding:3px"><table class="nowraplinks mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><style data-mw-deduplicate="TemplateStyles:r1239400231">
/* start https://en.wikipedia.org/ */
.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}
/* end https://en.wikipedia.org/ */
</style><div id="Inter-process_communication278" style="font-size:114%;margin:0 4em"><a href="Inter-process_communication" title="Inter-process communication">Inter-process communication</a></div></th></tr><tr><td class="navbox-abovebelow" colspan="2"><div><a href="Data" title="Data">Data</a> exchange among <a href="Thread_(computing)" title="Thread (computing)">threads</a> in <a href="Computer_program" title="Computer program">computer programs</a></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Methods</th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Computer_file" title="Computer file">File</a></li>
<li><a href="Mmap" title="Mmap">Memory-mapped file</a></li>
<li><a href="Message_passing" title="Message passing">Message passing</a></li>
<li><a href="Named_pipe" title="Named pipe">Named pipe</a></li>
<li><a href="Anonymous_pipe" title="Anonymous pipe">Anonymous pipe</a></li>
<li><a href="Pipeline_(Unix)" title="Pipeline (Unix)">Pipe</a></li>
<li><a href="Semaphore_(programming)" title="Semaphore (programming)">Semaphore</a></li>
<li><a href="Shared_memory" title="Shared memory">Shared memory</a></li>
<li><a href="Signal_(IPC)" title="Signal (IPC)">Signal</a></li>
<li>Sockets
<ul><li><a href="Network_socket" title="Network socket">Network</a></li>
<li><a href="Unix_domain_socket" title="Unix domain socket">Unix</a></li></ul></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Communication_protocol" title="Communication protocol">Protocols</a><br>and <a href="Technical_standard" title="Technical standard">standards</a></th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Apple_event" title="Apple event">Apple events</a></li>
<li><a href="Component_Object_Model#COM.2B" title="Component Object Model">COM+</a></li>
<li><a href="Common_Object_Request_Broker_Architecture" title="Common Object Request Broker Architecture">CORBA</a></li>
<li><a href="D-Bus" title="D-Bus">D-Bus</a></li>
<li><a href="Data_Distribution_Service" title="Data Distribution Service">DDS</a></li>
<li><a href="Distributed_Computing_Environment" title="Distributed Computing Environment">DCE</a></li>
<li><a href="Internet_Communications_Engine" title="Internet Communications Engine">ICE</a></li>
<li><a href="OpenBinder" title="OpenBinder">OpenBinder</a></li>
<li><a href="Sun_RPC" title="Sun RPC">Sun RPC</a></li>
<li><a href="POSIX" title="POSIX">POSIX</a> (various methods)</li>
<li><a href="SOAP" title="SOAP">SOAP</a></li>
<li><a href="REST" title="REST">REST</a></li>
<li><a href="Apache_Thrift" title="Apache Thrift">Thrift</a></li>
<li><a href="Transparent_Inter-process_Communication" title="Transparent Inter-process Communication">TIPC</a></li>
<li><a href="XML-RPC" title="XML-RPC">XML-RPC</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Library_(computing)" title="Library (computing)">Software libraries</a><br>and <a href="Software_framework" title="Software framework">frameworks</a></th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="D-Bus" title="D-Bus">D-Bus</a></li>
<li><a href="Libevent" title="Libevent">libevent</a></li>
<li><a href="SIMPL" title="SIMPL">SIMPL</a></li>
<li><a href="LINX_(IPC)" class="mw-redirect" title="LINX (IPC)">LINX</a></li></ul>
</div></td></tr></tbody></table></div></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-04-04" href="https://en.wikipedia.org/wiki/?title=Message_queue&oldid=1283985427">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>
</body></html>